import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
// import Table from './views/nav1/Table.vue'
// import Form from './views/nav1/Form.vue'
// import user from './views/nav1/user.vue'
// import Page4 from './views/nav2/Page4.vue'
// import Page5 from './views/nav2/Page5.vue'
// import Page6 from './views/nav3/Page6.vue'
// import echarts from './views/charts/echarts.vue'
import bank from './views/system/bank.vue'
import blood from './views/system/blood'
import hundred from './views/system/hundred'
import czShop from './views/system/czShop'
import swShop from './views/system/swShop'
import vipShop from './views/system/vipShop'
import afterCz from './views/system/afterCz'
import deposit from './views/system/deposit'
import novice from './views/system/novice'
import powerSet from './views/system/power'
import afterAccount from './views/system/afterAccount'
import give from './views/system/give'
import notice from './views/system/notice'
import horse from './views/system/horse'
import email from './views/system/email'
import white from './views/system/white'
import auto from './views/system/auto'
import operate from './views/log/operate'
import glod from './views/log/glod'
import room from './views/log/room'
import profit from './views/log/profit'
import control from './views/log/control'
import detail from './views/log/detail'
import reward from './views/log/reward'
import roomTotal from './views/log/roomTotal'
import user from './views/total/user'
import register from './views/total/register'
import active from './views/total/active'
import goldTotal from './views/total/goldTotal'
import rechargeTotal from './views/total/rechargeTotal'
import retention from './views/total/retention'
import payTotal from './views/total/payTotal'
import agent from './views/agent/agent'
import member from './views/agent/member'
import agentSearch from './views/agent/agentCashList'
import player from './views/player/searchPlayer'
import robot from './views/system/robot'
import playerDetail from './views/player/playerDetail'
import onlinePlayer from './views/player/onlinePlayer'
import defend from './views/player/defend'
import award from './views/player/award'
import playerBunko from './views/player/bunko'
import cashList from './views/player/cashList'
import follow from './views/player/follow'
import giveRecord from './views/player/give'
import matter from './views/player/matter'
import loginRecord from './views/player/loginRecord'
import moneyChange from './views/player/moneyChange'
import rechargeRecord from './views/player/rechargeRecord'


let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '首页',
        leaf: true,
        iconCls: 'el-icon-menu',
        children: [
            { path: '/main', component: Main, name: '首页'},
        ]
    },
    {
        path: '/',
        component: Home,
        name: '系统配置',
        iconCls: 'el-icon-setting',//图标样式class
        children: [
            // { path: '/bank', component: bank, name: '银行库存' },
            { path: '/blood', component: blood, name: '血池配置' },
            { path: '/robot', component: robot, name: '机器人配置' },
            // { path: '/hundred', component: hundred, name: '百人类配置' },
            { path: '/czShop', component: czShop, name: '充值商城配置' },
            { path: '/swShop', component: swShop, name: '实物商城配置' },
            { path: '/vipShop', component: vipShop, name: 'vip充值配置' },
            // { path: '/afterCz', component: afterCz, name: '后台充值配置' },
            { path: '/deposit', component: deposit, name: '提现配置' },
            { path: '/novice', component: novice, name: '新手奖励配置' },
            { path: '/white', component: white, name: '百人类庄家用户白名单' },
            { path: '/powerSet', component: powerSet, name: '权限分组设定' },
            { path: '/afterAccount', component: afterAccount, name: '后台账号管理' },
            // { path: '/give', component: give, name: '赠送限制配置' },
            { path: '/notice', component: notice, name: '公告管理' },
            { path: '/horse', component: horse, name: '跑马灯设置' },
            // { path: '/email', component: email, name: '邮件信息' },
            // { path: '/white', component: white, name: '白名单配置' },
            // { path: '/auto', component: auto, name: '自动点控' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '系统管理(数据查询)',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/operate', component: operate, name: '后台操作日志' },
            { path: '/glod', component: glod, name: '后台添加金币记录' },
            { path: '/reward', component: reward, name: '后台添加奖励点记录' },
            // { path: '/control', component: control, name: '用户点控记录' },
            { path: '/room', component: room, name: '房间配置(房间列表）' },
            { path: '/profit', component: profit, name: '收益统计' },
            { path: '/detail', component: detail, name: '平台明细记录' },
            { path: '/roomTotal', component: roomTotal, name: '房间统计记录' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '玩家管理',
        iconCls: 'fa fa-address-card',
        children: [
            { path: '/player', component: player, name: '查询玩家/玩家列表/玩家详情' },
            // { path: '/playerDetail', component: playerDetail, name: '玩家详情' ,hidden: true},
            { path: '/onlinePlayer', component: onlinePlayer, name: '玩家在线列表' },
            // { path: '/defend', component: defend, name: '玩家保护列表' },
            { path: '/rechargeRecord', component: rechargeRecord, name: '充值记录' },
            { path: '/cashList', component: cashList, name: '提现列表' },
            { path: '/giveRecord', component: giveRecord, name: '赠送接收记录' },
            // { path: '/playerBunko', component: playerBunko, name: '用户输赢搜索' },
            { path: '/matter', component: matter, name: '实物兑换记录' },
            { path: '/moneyChange', component: moneyChange, name: '金币变动记录' },
            { path: '/award', component: award, name: '奖励点变动记录' },
            // { path: '/loginRecord', component: loginRecord, name: '玩家登录记录' },
            // { path: '/follow', component: follow, name: '关注列表' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '代理管理',
        iconCls: 'fa fa-address-card',
        children: [
            { path: '/agent', component: agent, name: '代理列表' },
            { path: '/agent/member', component: member, name: '代理列表',hidden: true},
            { path: '/agentSearch', component: agentSearch, name: '代理提现列表' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '图表数据',
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/user', component: user, name: '用户在线统计' },
            { path: '/register', component: register, name: '日注册统计' },
            { path: '/active', component: active, name: '用户活跃统计' },
            { path: '/goldTotal', component: goldTotal, name: '金币奖励点统计' },
            { path: '/rechargeTotal', component: rechargeTotal, name: '用户充值统计' },
            { path: '/retention', component: retention, name: '留存率统计' },
            { path: '/payTotal', component: payTotal, name: '付费活跃统计' },
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;